package com.chenwenxuan.sync.ui.editor;

import com.chenwenxuan.sync.event.Event;
import com.chenwenxuan.sync.event.IEventSource;
import com.javadocking.dock.TabDock;

public interface Editor extends IEventSource {
	
	public static final Event EDITOR_CONTENT_CHANGED = new Event("EDITOR_CONTENT_CHANGED");
	public static final Event EDITOR_CONTENT_SAVED = new Event("EDITOR_CONTENT_SAVED");
	
	public boolean isDirty();
	public boolean save();
	public boolean isOpenedFor(Object input);
	public Object getOutput();
	public String getDisplayName();
	
	public void setInput(Object input);
	public void setParentDock(TabDock parentDock);
	public void setId(String id);
	

}
